#include"Stack.h"

int Test()
{
	ST s;
	STInit(&s);
	STPush(&s, 1);
	STPush(&s, 2);
	STPush(&s, 3);
	STPush(&s, 4);

	printf("%d\n", STTop(&s));

	STPop(&s);
	printf("%d\n", STTop(&s));

	//
	while (!STEmpty(&s))
	{
		printf("%d ", STTop(&s));
		STPop(&s);
	}
	printf("\n");

	STDestroy(&s);

	return 0;
}

int main()
{
	Test();
	return 0;
}